package com.foreverwin.jzymes.production.gr.enums;

public enum GoodsReceiveTypeEnum {

    /**成品良品入库*/
    OK_PRODUCT("MO"),
    /**成品不良品入库*/
    NG_PRODUCT("MN"),
    /**制程报废入库*/
    SCRAP_PRODUCT("MS"),
    /**成品良品入库*/
    OK_SEMI("BO"),
    /**成品不良品入库*/
    NG_SEMI("BN"),
    /**制程报废入库*/
    SCRAP_SEMI("BS"),
    /**原材不良退库*/
    NG_RAW("RN"),
    /**原材良品退库*/
    OK_RAW("RO");

    private String value;

    GoodsReceiveTypeEnum(String value ){
        this.value = value;
    }

    public String getValue(){
        return this.value;
    }

    public static GoodsReceiveTypeEnum fromValue(String value ){
        GoodsReceiveTypeEnum[] storeLocationTypeEnums = values();
        for( GoodsReceiveTypeEnum storeLocationTypeEnum : storeLocationTypeEnums ){
            if( storeLocationTypeEnum.value.equals( value ) ){
                return storeLocationTypeEnum;
            }
        }
        throw new IllegalArgumentException( value );
    }
}
